﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="Cargo_Modify.aspx.cs" Inherits="WebUI.Carriers.Cargo_Modify" %>

<asp:Content ID ="Content1" ContentPlaceHolderID ="ContentPlaceHolder1" runat="server">
    <table>
        <tr>
            <td colspan="2">
                寄件人</td>
        </tr>
        <tr>
            <td style="width: 100px; height: 41px;">
                姓名：</td>
            <td style="width: 126px; height: 41px;">
                <asp:TextBox ID="txtSenderName" runat="server" ReadOnly="True" ForeColor="#404040"></asp:TextBox>
                </td>
                <td style="text-align:left;"><asp:RequiredFieldValidator ID="RFValidatorSenderName" runat="server" ControlToValidate="txtSenderName"
                    ErrorMessage="*">对不起！此项不能为空...</asp:RequiredFieldValidator></td>
                
        </tr>
        <tr>
            <td style="width: 100px">
                电话：</td>
            <td style="width: 126px">
                <asp:TextBox ID="txtSenderTel" runat="server" ReadOnly="True" ForeColor="#404040"></asp:TextBox>
                </td>
                    <td style="text-align:left;"><asp:RequiredFieldValidator ID="RFValidatorSenderTel" runat="server" ControlToValidate="txtSenderTel"
                    ErrorMessage="*" Visible="False">对不起！此项不能为空...</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="REValidatorSenderTel" runat="server" ControlToValidate="txtSenderTel"
                    ErrorMessage="*" ValidationExpression="^((\(\d{3}\))|(\d{3}\-))?13[0-9]\d{8}|15[89]\d{8}$">对不起！请输入正确的联系电话...</asp:RegularExpressionValidator></td>
        </tr>
        <tr>
            <td style="width: 100px">
                手机：</td>
            <td style="width: 126px">
                <asp:TextBox ID="txtSenderMobile" runat="server" ReadOnly="True" ForeColor="#404040"></asp:TextBox>
                </td>
                    <td style="text-align:left;"><asp:RequiredFieldValidator ID="RFValidatorSenderMobile" runat="server" ControlToValidate="txtSenderMobile"
                    ErrorMessage="*">对不起！此项不能为空...</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="REValidatorSenderMobile" runat="server" ControlToValidate="txtSenderMobile"
                    ErrorMessage="*" ValidationExpression="^((\(\d{3}\))|(\d{3}\-))?13[0-9]\d{8}|15[89]\d{8}$">对不起！请输入正确的联系电话...</asp:RegularExpressionValidator></td>
        </tr>
        <tr>
            <td style="width: 100px">
                地址：</td>
            <td style="width: 126px">
                <asp:TextBox ID="txtSenderAddress" runat="server" TextMode="MultiLine" ReadOnly="True" ForeColor="#404040"></asp:TextBox>
                </td>
                    <td style="text-align:left;"><asp:RequiredFieldValidator ID="RFValidatorSenderAddress" runat="server" ControlToValidate="txtSenderAddress"
                    ErrorMessage="*">对不起！此项不能为空...</asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td style="width: 100px">
                邮编：</td>
            <td style="width: 126px; text-align: left;">
                <asp:TextBox ID="txtSenderPostalCode" runat="server" ReadOnly="True" ForeColor="#404040"></asp:TextBox>
                </td>
                    <td style="text-align:left;"><asp:RequiredFieldValidator ID="RFValidatorSenderPostalCode" runat="server" ControlToValidate="txtSenderPostalCode"
                    ErrorMessage="*">对不起！此项不能为空...</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="REValidatorSenderPostalCode" runat="server" ControlToValidate="txtSenderPostalCode"
                    ErrorMessage="*" ValidationExpression="^[1-9]\d{5}$">对不起！你输入的邮编不正确...</asp:RegularExpressionValidator></td>
        </tr>
    </table>
    <table>
        <tr>
            <td colspan="2">
                收件人</td>
        </tr>
        <tr>
            <td style="width: 100px">
                姓名：</td>
            <td style="width: 126px; text-align: left;">
                <asp:TextBox ID="txtRecipientName" runat="server" ReadOnly="True" ForeColor="#404040"></asp:TextBox>
                </td>
                    <td style="text-align:left; width: 411px;"><asp:RequiredFieldValidator ID="RFValidatorRecipientName" runat="server" ControlToValidate="txtRecipientName"
                    ErrorMessage="*">对不起！此项不能为空...</asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td style="width: 100px">
                电话：</td>
            <td style="width: 126px; text-align: left;">
                <asp:TextBox ID="txtRecipientTel" runat="server" ReadOnly="True" ForeColor="#404040"></asp:TextBox>
                </td>
                    <td style="text-align:left; width: 411px;"><asp:RequiredFieldValidator ID="RFValidatorRecipientTel" runat="server" ControlToValidate="txtRecipientTel"
                    ErrorMessage="*">对不起！此项不能为空...</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="REValidatorRecipientTel" runat="server" ControlToValidate="txtRecipientTel"
                    ErrorMessage="*" ValidationExpression="^((\(\d{3}\))|(\d{3}\-))?13[0-9]\d{8}|15[89]\d{8}$">对不起！你输入的电话不正确...</asp:RegularExpressionValidator></td>
        </tr>
        <tr>
            <td style="width: 100px; height: 21px; text-align: center;">
                手机：</td>
            <td style="width: 126px; height: 21px; text-align: left;">
                <asp:TextBox ID="txtRecipientMoblie" runat="server" ReadOnly="True" ForeColor="#404040"></asp:TextBox>
                </td>
            <td style="text-align:left; width: 411px;"><asp:RequiredFieldValidator ID="RFValidatorRecipientMoblie" runat="server" ControlToValidate="txtRecipientMoblie"
                    ErrorMessage="*">对不起！此项不能为空...</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="REValidatorRecipientMoblie" runat="server" ControlToValidate="txtRecipientMoblie"
                    ErrorMessage="*" ValidationExpression="^((\(\d{3}\))|(\d{3}\-))?13[0-9]\d{8}|15[89]\d{8}$">对不起！你输入的手机不正确...</asp:RegularExpressionValidator></td>
        </tr>
        <tr>
            <td style="width: 100px">
                地址：</td>
            <td style="width: 126px; text-align: left;">
                <asp:TextBox ID="txtRecipientAddress" runat="server" TextMode="MultiLine" ReadOnly="True" ForeColor="#404040"></asp:TextBox>
                </td>
            <td style="text-align:left; width: 411px;"><asp:RequiredFieldValidator ID="RFValidatorRecipientAddress" runat="server" ControlToValidate="txtRecipientAddress"
                    ErrorMessage="*">对不起！此项不能为空...</asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td style="width: 100px">
                邮编：</td>
            <td style="width: 126px; text-align: left;">
                <asp:TextBox ID="txtRecipientPostalCode" runat="server" ReadOnly="True" ForeColor="#404040"></asp:TextBox>
                </td>
             <td style="text-align:left; width: 411px;"><asp:RequiredFieldValidator ID="RFValidatorRecipientPostalCode" runat="server" ControlToValidate="txtRecipientPostalCode"
                    ErrorMessage="*">对不起！此项不能为空...</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="REValidatorRecipientPostalCode" runat="server"
                    ControlToValidate="txtRecipientPostalCode" ErrorMessage="*" ValidationExpression="^[1-9]\d{5}$">对不起！你输入的邮编不正确...</asp:RegularExpressionValidator></td>
        </tr>
    </table>
    <table>
        <tr>
            <td colspan="2" style="text-align: center">
                货物描述</td>
        </tr>
        <tr>
            <td style="width: 100px; height: 24px;">
                名称：</td>
            <td style="width: 126px; text-align: left; height: 24px;">
                <asp:TextBox ID="txtCargoName" runat="server" ReadOnly="True" ForeColor="#404040"></asp:TextBox>
                </td>
                 <td style="text-align:left; width: 412px;"><asp:RequiredFieldValidator ID="RFValidatorCargoName" runat="server" ControlToValidate="txtCargoName"
                    ErrorMessage="*">对不起！此项不能为空...</asp:RequiredFieldValidator></td>    
        </tr>
        <tr>
            <td style="width: 100px">
                件数：</td>
            <td style="width: 126px; text-align: left;">
                <asp:TextBox ID="txtTotalPackages" runat="server" ReadOnly="True" ForeColor="#404040"></asp:TextBox>
                </td>
                     <td style="text-align:left; width: 412px;"><asp:RegularExpressionValidator ID="REValidatorTotalPackages" runat="server" ControlToValidate="txtTotalPackages"
                    ErrorMessage="*" ValidationExpression="\d*">对不起！你输入的不是数字...</asp:RegularExpressionValidator>
                <asp:RequiredFieldValidator ID="RFValidatorTotalPackages" runat="server" ControlToValidate="txtTotalPackages"
                    ErrorMessage="*">对不起！此项不能为空...</asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td style="width: 100px">
                预计重量：</td>
            <td style="width: 126px; text-align: left;">
                <asp:TextBox ID="txtDIM" runat="server" ReadOnly="True" ForeColor="#404040"></asp:TextBox>
                </td>
             <td style="text-align:left; width: 412px;"><asp:RequiredFieldValidator ID="RFValidatorDIM" runat="server" ControlToValidate="txtDIM"
                    ErrorMessage="*">对不起！此项不能为空...</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="REValidatorDIM" runat="server" ControlToValidate="txtDIM"
                    ErrorMessage="*" ValidationExpression="^[1-9]\d*\.\d*|0\.\d*[1-9]\d*$">对不起！你输入的不是数字...</asp:RegularExpressionValidator></td>
        </tr>
        <tr>
            <td style="width: 100px">
                预计体积：</td>
            <td style="width: 126px">
                <asp:TextBox ID="txtWeight" runat="server" ReadOnly="True" ForeColor="#404040"></asp:TextBox>
                </td>
             <td style="text-align:left; width: 412px;"><asp:RequiredFieldValidator ID="RFValidatorWeight" runat="server" ControlToValidate="txtWeight"
                    ErrorMessage="*">对不起！此项不能为空...</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="REValidatorWeight" runat="server" ControlToValidate="txtWeight"
                    ErrorMessage="*" ValidationExpression="^[1-9]\d*\.\d*|0\.\d*[1-9]\d*$">对不起！你输入的不是数字...</asp:RegularExpressionValidator></td>
        </tr>
        <tr>
            <td style="width: 100px">
                货物类型：</td>
            <td style="width: 126px; text-align: left;">
                <asp:TextBox ID="txtCargoType" runat="server" ReadOnly="True" ForeColor="#404040"></asp:TextBox>
                </td>
               <td style="text-align:left; width: 412px;"><asp:RequiredFieldValidator ID="RFValidatorCargoType" runat="server" ControlToValidate="txtCargoType"
                    ErrorMessage="*">对不起！此项不能为空...</asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td style="width: 100px">
                是否加急：</td>
            <td style="width: 126px; text-align: left">
                <asp:DropDownList ID="ddrUrgent" runat="server" ForeColor="#404040">
                    <asp:ListItem>不加急</asp:ListItem>
                    <asp:ListItem>次日达</asp:ListItem>
                    <asp:ListItem>3天内</asp:ListItem>
                </asp:DropDownList></td>
        </tr>
        <tr>
            <td style="width: 100px">
                支付方式：</td>
            <td style="width: 126px; text-align: left">
                <asp:DropDownList ID="ddrPayment" runat="server" ForeColor="#404040">
                    <asp:ListItem>发件人支付</asp:ListItem>
                    <asp:ListItem>收件人支付</asp:ListItem>
                    <asp:ListItem>预支付</asp:ListItem>
                </asp:DropDownList></td>
        </tr>
        <tr>
            <td style="width: 100px">
                注意事项：</td>
            <td style="width: 126px; text-align: left">
                <asp:TextBox ID="txtAttentions" runat="server" TextMode="MultiLine" ReadOnly="True" ForeColor="#404040"></asp:TextBox>
                </td>
              <td style="text-align:left; width: 412px;"><asp:RequiredFieldValidator ID="RFValidatorAttentions" runat="server" ControlToValidate="txtAttentions"
                    ErrorMessage="*">对不起！此项不能为空...</asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td style="width: 100px">
                备注：</td>
            <td style="width: 126px; text-align: left">
                <asp:TextBox ID="txtNode" runat="server" TextMode="MultiLine" ReadOnly="True" ForeColor="#404040"></asp:TextBox>
                </td>
              <td style="text-align:left; width: 412px;"><asp:RequiredFieldValidator ID="RFValidatorNode" runat="server" ControlToValidate="txtNode"
                    ErrorMessage="*">对不起！此项不能为空...</asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td style="width: 100px">
                货运状态：</td>
            <td style="width: 126px; text-align: left">
                <asp:DropDownList ID="ddrCargoState" runat="server" ForeColor="#404040">
                    <asp:ListItem>申请中</asp:ListItem>
                    <asp:ListItem>已接收</asp:ListItem>
                    <asp:ListItem>已发货</asp:ListItem>
                    <asp:ListItem>退单</asp:ListItem>
                </asp:DropDownList></td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:Button ID="btnReceive" runat="server" OnClick="btnReceive_Click" Text="接收"  ForeColor="#404040"/>
                &nbsp;<asp:Button ID="btnReturn" runat="server" Text="返回" OnClick="btnReturn_Click" ForeColor="#404040"/></td>
        </tr>
    </table>
</asp:Content>
